import { createApp } from 'vue';
import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import router from './router';
import ElementPlus from 'element-plus';
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css';
import App from './App.vue';

const app = createApp(App); 
const pinina = createPinia();
pinina.use(piniaPluginPersistedstate)
app.use(ElementPlus, {
    locale: zhCn,
  });
app.use(router);
app.mount('#app');
app.use(pinina);
